<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/23
 * Time: 14:33
 * 添加用户所属角色
 */
//获取参数
$our_ouid              = $route->bodyParams['our_ouid'];               //关联用户ID
$our_orid              = $route->bodyParams['our_orid'];               //关联角色ID



//写入数组
$insertArr = [
    'our_ouid'              => $our_ouid,
    'our_orid'              => $our_orid,
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_user_role",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );